home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Aug 89 / X0050-Re Object Pascal +-Aug89 < prev    next >
Encoding:
Text File  |  1989-08-22  |  872 b   |  25 lines  |  [TEXT/GEOL]

  1. Item    2046283                         14-Aug-89        18:21
  2.  
  3. From:   ALGER                           Alger, Jeff
  4.  
  5. To:     D1220                           Vari-Lite, Andy Meldrum,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Response to Object Pascal +
  10.  
  11. Andy,
  12.  
  13. I know what you're getting at, but that's just not Object Pascal.  In fact,
  14. it's not even Macintosh Pascal without the objects, since there is no way to
  15. call a function or procedure by address without resorting to assembler!
  16.  
  17. Why not consider passing an object instead?  If you want to pass a comparison
  18. function to a sort routine, create a TSortComparator object with one method
  19. called Compare.  Subclass TSortComparator to override the Compare method as
  20. needed, then pass the subclass to your routine.  OK, grubby, but it is at least
  21. consistent with Object Pascal usage.
  22.  
  23. Jeff
  24.  
  25.